package ch07.shizhang.shizhang03;

/**
 * @author 茜茜
 * @date 2024-11-27 20:41
 */
public class Client {
    public static void main(String[] args) {
        // 创建实际的业务对象
        BusinessService realService = new BusinessServiceImpl();

        // 创建代理对象
        BusinessService proxyService = new BusinessServiceProxy(realService);

        // 通过代理对象调用业务方法
        proxyService.performBusinessLogic();
    }
}
